<%@ page import="java.util.List" %>
<%@ page import="com.zsh.pojo.Student" %>
<%@ page import="java.util.ArrayList" %><%--
  Created by IntelliJ IDEA.
  User: ZSH
  Date: 2022/1/6
  Time: 16:14
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <%
        List<Student> studentList = (List<Student>) request.getAttribute("studentList");
    %>
    <table>
        <% for (Student s:studentList) { %>
        <tr>
            <td><%=s.getId()%></td>
            <td><%=s.getName()%></td>
            <td><%=s.getAge()%></td>
        </tr>
        <%}%>
    </table>

</body>
</html>
